package com.rope.backEnd.mapper;


import com.rope.backEnd.pojo.ChatHistory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChatHistoryMapper {

        List<ChatHistory> list();

        @Insert("insert into rope_database.chat(userID,shareID,chat_history,create_time) values(#{chatHistory.userID},#{chatHistory.shareID},#{chatHistory.chatHistory},now());")
        int input(@Param("chatHistory")ChatHistory chatHistory);
}
